package com.eyaomall.wxmanage.model.pojo;

import java.math.BigDecimal;

/**
 * 付费项目
 * @author yuhuafeng
 *
 */
public class PayMentClass {

	/**
	 * 主键id
	 */
	private Integer id;
	
	/**
	 * 名称
	 */
	private String name;
		
	/**
	 * 费用
	 */
	private BigDecimal amount;
	
	/**
	 * 类型
	 */
	private String type;
	
	/**
	 * 额外参数，用于方法具体处理
	 */
	private String optional;

	public PayMentClass(){
		
	}
	
	public PayMentClass(String kinds) {
			switch (kinds) {
			case "1":
				id=1;
				optional="365";
				type="1";
				amount=new BigDecimal(0.01);
				name="微商城一年期";
				break;

			default:
				break;
			}
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getOptional() {
		return optional;
	}

	public void setOptional(String optional) {
		this.optional = optional;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
